package org.zsl.service;

import org.springframework.stereotype.Service;
import org.zsl.model.ResponseMsg;
import org.zsl.model.User;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserRestfulService {
    public ResponseMsg add(User user) {
        ResponseMsg responseMsg = new ResponseMsg();
        responseMsg.setSuccess(true);
        return responseMsg;
    }

    public ResponseMsg edit(User user) {
        ResponseMsg responseMsg = new ResponseMsg();
        responseMsg.setSuccess(true);
        return responseMsg;
    }

    public ResponseMsg remove(Integer userId) {

        ResponseMsg responseMsg = new ResponseMsg();
        responseMsg.setSuccess(true);
        return responseMsg;
    }

    public List<User> getList() {

        List<User> list = new ArrayList<>();

        return  list;
    }

    public User getSingle(Integer userId) {

        return  null;
    }
}
